import http from '@/utils/http.js';

export default {
    login: function (data) {
        return http.post('/login/account', data);
    },
    register: function (data) {
        return http.post('/user/register', data);
    },
    getProfile: function () {
        return http.get('/user/info')
    },


    pageUsers: function (params) {
        return http.get('/admin/user/page',{
            params
        })
    },

    banUser(params) {
        return http.get(`/admin/user/ban`, {params})
    },

    unbanUser(params) {
        return http.get(`/admin/user/unban`, {params})
    },

    updateInfo(userInfo){
        return http.post('admin/user/update', userInfo)
    },

    getUserBindCourseList(params){
        return http.get('/manage/course/user/list', {params})
    },

    listFocusUsers() {
        return http.get('/api/user/listFocusByActivity')
    },
}
